﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Frontend.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="CphTitleContent" ContentPlaceHolderID="TitleContent" runat="server">
    Trang chủ
</asp:Content>
<asp:Content ID="CphHeadContent" ContentPlaceHolderID="HeadContent" runat="server">
 <script type="text/javascript">
        function beginPaging(args) {
        }

        function successPaging() {
        }
        function failurePaging() {
            alert("Could not retrieve products.");
        }
 </script>
</asp:Content>
<asp:Content ID="CphMainContent" ContentPlaceHolderID="MainContent" runat="server">
    <%= TempData["Message"] %>  
    <div class="mcategory">
        <ul>
            <%
                List<Category> categoryList = (List<Category>)ViewData["CategoryList"];
                foreach (Category item in categoryList)
                { %>
            <li>
                <p class="lnk">
                    <a href="<%=FRouter._("danhmuc",item.ID.ToString(),item.CategoryName) %>">
                        <img class="img" src="<%=Constants.PHOTO_PATH_ROOT_CATEGORY + item.Image%>" width="40" /><%=item.CategoryName %></a></p>
                <p class="des">
                    <%=item.Description %></p>
            </li>
            <%}
            %>
        </ul>
        <div class="clrfix">
        </div>
    </div>
    <% Html.RenderPartial("Modules/Mod_Client"); %>
    <div class="clrfix"></div>
    <div class="product-home">
        <div class="ptitle">
            <span><strong>Sản Phẩm</strong></span>
        </div>
        <div class="hcat">
            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                <tr>                    
                    <td class="hcat-rgh">                        
                        <div class="hcat-partner" id="pHome">
                            <% Html.RenderPartial("ProductList", this.Model);  %>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
